package com.zixuan.gulicollege.service_order.service;

import com.alipay.api.AlipayApiException;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zixuan.gulicollege.entity.order.Order;
import com.zixuan.gulicollege.entity.order.PayLog;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 支付日志表 服务类
 * </p>
 *
 * @author zixuan
 * @since 2021-05-26
 */
public interface PayLogService extends IService<PayLog> {

    /**
     * 支付宝支付接口
     * @param order
     * @return
     */
    String aliPay(Order order) throws AlipayApiException;

    /**
     * 支付宝验签接口
     * @param request
     * @return
     * @throws AlipayApiException
     */
    String callBack(HttpServletRequest request) throws AlipayApiException;
}
